package com.mvc.model.mb.archive;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;


import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.NotBlank;

import com.mvc.model.base.IdEntity;

@Entity
@Table(name = "sys_user")
@DynamicInsert(false)
@DynamicUpdate(false)
public class User extends IdEntity implements java.io.Serializable {

	private String loginname; // 登录名
	private String password; // 密码
	private String name; // 姓名
	private Integer sex; // 性别
	private Integer age; // 年龄
	private Date createdatetime; // 创建时间
	private Integer usertype; // 用户类型
	private Integer isdefault; // 是否默认
	private Integer state; // 状态
	private String usercode;//用户区域代码

	public User() {
		super();
	}

	public String getLoginname() {
		return loginname;
	}

	public String getPassword() {
		return password;
	}

	public String getName() {
		return name;
	}

	public Integer getSex() {
		return sex;
	}

	public Integer getAge() {
		return age;
	}

	public Date getCreatedatetime() {
		return createdatetime;
	}

	public Integer getUsertype() {
		return usertype;
	}

	public Integer getIsdefault() {
		return isdefault;
	}

	public Integer getState() {
		return state;
	}

	public String getUsercode() {
		return usercode;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public void setCreatedatetime(Date createdatetime) {
		this.createdatetime = createdatetime;
	}

	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}

}